]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
ci: Add test stage
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 12 Feb 2019 21:39:47 +0000 (22:39 +0100)
committerGeorges Basile Stavracas Neto <georges.stavracas@gmail.com>
Tue, 26 Feb 2019 21:08:17 +0000 (21:08 +0000)
We never gained a proper test suite, but run at least the tests we
have.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/408

.gitlab-ci.yml

index 27fff72351cec45a40afc948153b8d42f50ebefc..4a35606bb5542a328ab3564703d173efc6b255b2 100644 (file)
@@ -2,6 +2,7 @@ stages:
  - review
  - source_check
  - build
+ - test
 
 variables:
     JS_LOG: "js-report.txt"
@@ -51,3 +52,22 @@ build:
         - ninja -C build
         - ninja -C build install
     <<: *only_default
+    artifacts:
+        expire_in: 1 day
+        paths:
+            - mutter
+            - build
+
+test:
+    image: registry.gitlab.gnome.org/gnome/gnome-shell/master:v1
+    stage: test
+    before_script:
+        - ninja -C mutter/build install
+    script:
+        - xvfb-run meson test -C build --no-rebuild
+    <<: *only_default
+    artifacts:
+        expire_in: 1 day
+        paths:
+            - build/meson-logs/testlog.txt
+        when: on_failure